package com.recruit.dao;

import com.recruit.entity.Admin;
import com.recruit.entity.CompanyUser;
/****
 * author:丁文彬
 * time：2020.9.25
 */
import java.sql.SQLException;
/****
 * author:丁文彬
 * time：2020.9.26
 */

public class AdminLoginDao extends BaseDao<Admin>{

    public Admin selectUserByUsernameAndPassword(String username, String password) throws SQLException {
        //sql
        String sql = "select * from admin where username=? and password=?";
        //调用父类
        Admin admin = this.getBean(Admin.class, sql, username, password);
        return admin;
    }
}
